Making changes to a library item

Editing a library item changes the original item file. Dreamweaver lets you choose to update the edited item in all documents in the current site, rename items to break their connection with documents or templates, and delete items from a library.

Note: The CSS Style palette, Timeline inspector, and Behavior inspector are unavailable when you are editing a library item, because library items can contain only BODY elements. Timeline and CSS style sheet code is part of the HEAD section, and the Behavior inspector is unavailable because it inserts code into the HEAD as well as the BODY section. For instructions on editing behaviors, see Editing a behavior in a library item.

To edit a library item:

1 Choose Window > Library or click Library on the Launcher.
2 Select a library item and click the Open icon (the folder icon) at the bottom of the palette, or double-click the item.
Dreamweaver opens a new window for editing the library item.
3 Edit the library item and then save your changes.
4 In the dialog box that appears, choose whether to update the documents on the local site with the edited library item:
Choose Update to update all documents in the local site with the edited library item.
Choose Don't Update to avoid changing any documents until you use Modify > Library > Update Current Page or Update Pages.

To update pages that use an edited library item:

1 Choose Modify > Library > Update Pages.
2 In the dialog box that appears, choose the files that you want to update.
Choose Entire Site to update all documents on the specified site.
Choose Files That Use to update all documents that use the specified library item.
3 Click Start.

The content of the library item is replaced in the specified documents.

To rename a library item:

1 Select a library item in the Library palette.
2 Click inside the item name.
3 Enter a new name.
4 When you click OK, Dreamweaver asks if you want to update files that use the item.
If you click Yes, all documents that previously used the item will update their references to the new name.
If you click No, documents that have references to the item under its old name will not automatically update their references to the new name.

To delete a library item from a library:

1 Choose Window > Library or click the Library button on the Launcher.
2 Select an item in the Library palette.
3 Click the trash icon or press Delete.

Deleting a library item removes the item from the library, but doesn't change the content of any documents.